package org.watchrecords.annotations;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

import com.agimatec.validation.routines.EMailValidation;

public class EmailValidator implements ConstraintValidator<Email, String> {
    @Override
    public void initialize(Email email) {
    }

    @Override
    public boolean isValid(String text, ConstraintValidatorContext context) {
        return EMailValidation.isValid(text);
    }
}
